/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.gra.entity;

import org.hibernate.validator.constraints.Length;
import java.util.List;
import com.google.common.collect.Lists;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 试卷管理Entity
 * @author wuzengli
 * @version 2017-05-04
 */
public class Paper extends DataEntity<Paper> {
	
	private static final long serialVersionUID = 1L;
	private String paperName;		// 考卷名称
	private String paperIntro;		// 考卷简介
	private String sort;		// 排序
	private String status;		// 启用状态 0:不可用 1:可用
	private List<Question> questionList = Lists.newArrayList();		// 子表列表
	
	public Paper() {
		super();
	}

	public Paper(String id){
		super(id);
	}

	@Length(min=0, max=50, message="考卷名称长度必须介于 0 和 50 之间")
	public String getPaperName() {
		return paperName;
	}

	public void setPaperName(String paperName) {
		this.paperName = paperName;
	}
	
	@Length(min=0, max=200, message="考卷简介长度必须介于 0 和 200 之间")
	public String getPaperIntro() {
		return paperIntro;
	}

	public void setPaperIntro(String paperIntro) {
		this.paperIntro = paperIntro;
	}
	
	@Length(min=0, max=11, message="排序长度必须介于 0 和 11 之间")
	public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		this.sort = sort;
	}
	
	@Length(min=0, max=11, message="启用状态 0:不可用 1:可用长度必须介于 0 和 11 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public List<Question> getQuestionList() {
		return questionList;
	}

	public void setQuestionList(List<Question> questionList) {
		this.questionList = questionList;
	}
}